import http from "@/utils/request_user";
import http_admin from "@/utils/request_admin";
//用户注册
export const saveUser = (params) =>{
    return http.post('/user/save',params)
}

//获取个人信息
export const getUser = (params) =>{
    return http.get('/user/getUser',params)
}
//登录
export const login = (params) =>{
    return http.post('user/login',params)
}
export const update = (params) =>{
    return http.put('/user',params)
}
//请求所有用户
export const getAllUser = (params)=>{
    return http_admin.get('/user/page',params)
}
//删除用户
export const delUer = (params) =>{
    return http.delete('/user',params)
}
//删除用户
export const delUserAdmin = (params) =>{
    return http_admin.delete('/user',params)
}